package one;

public class goodsTest {
    public static void main(String[] args) {
        goods[] arr = new goods[3];


        goods g1 = new goods("001","华为P40",5999.0,100);
        goods g2 = new goods("002","保温杯",227.0,50);
        goods g3 = new goods("003","枸杞",12.7,70);

        arr[0]=g1;
        arr[1]=g2;
        arr[2]=g3;


        for (int i = 0; i < arr.length; i++) {
            goods good = arr[i];
            System.out.println(good.getId()+","+good.getName()+","+good.getPrice()+","+good.getCount());
        }

    }


}
